<?php


	if(!$_SESSION['user'] || !(unserialize($_SESSION['user']) instanceOf User))
	{
		$this->setGuiMode('ajax');
		header('Location: /blog/admin/login');
		return;
	}
	else
	{
		$this->setGuiMode('ajax');
		header('Location: /blog/admin/manage');
		return;
	}
?>